#ifndef __ZKF_H__
#define __ZKF_H__

#define MAX(_x_,_y_) ((_x_)>(_y_)?(_x_):(_y_))
#define LineWidth 12
#define GETTEMPLATEG40(t) ((int)((t)[6]))
#define GETTEMPLATEG(t) ((int)((t)[4]))
#define GETFEATUREG(f) ((f)->G)
#define P_O_WIDTH(s) s[0]
#define P_O_HEIGHT(s) s[1]
#define P_CP0_X(s) ((((short*)s)[2]))
#define P_CP0_Y(s) ((((short*)s)[3]))
#define P_CP1_X(s) ((((short*)s)[4]))
#define P_CP1_Y(s) ((((short*)s)[5]))
#define P_CP2_X(s) ((((short*)s)[6]))
#define P_CP2_Y(s) ((((short*)s)[7]))
#define P_CP3_X(s) ((((short*)s)[8]))
#define P_CP3_Y(s) ((((short*)s)[9]))
#define P_TP0_X(s) s[10]
#define P_TP0_Y(s) s[11]
#define P_TP1_X(s) s[12]
#define P_TP1_Y(s) s[13]
#define P_TP2_X(s) s[14]
#define P_TP2_Y(s) s[15]
#define P_TP3_X(s) s[16]
#define P_TP3_Y(s) s[17]
#define P_TP4_X(s) s[18]
#define P_TP4_Y(s) s[19]
#define FP_WIDTH(s) s[20]
#define FP_HEIGHT(s) s[21]
#define ZH ((PZKHandle)Handle)

#endif
